﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UILose : MonoBehaviour {
    public GameObject btn1, btn2;
	// Use this for initialization
	void Start () {
        UGUIEventListener.Get(btn1).onClick = (obj) =>
        {
            LvController.Instance.currentLv--;
            LvController.Instance.ToNextLv();
            this.gameObject.SetActive(false);
        };
        UGUIEventListener.Get(btn2).onClick = (obj) =>
        {
            LvController.Instance.currentLv--;
            LvController.Instance.ToNextLv();
            this.gameObject.SetActive(false);
        };
    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
